package com.course.component.events;
/*
@author By 林中小鸟
@package  com.self.introduction.component.events
@create 2022 - 01 - 2022\1\10 0010
@QQ: 357182695
@Em: themooncss@gmail.com
*/

import org.springframework.context.ApplicationEvent;

import java.time.Clock;

public class TestEvent extends ApplicationEvent {
    private Object object;
    public TestEvent(Object source) {
        super(source);
        object = source;
    }

    public TestEvent(Object source, Clock clock) {
        super(source, clock);
    }

    public Object getSource() {
        return object;
    }

    public Class getSourceClass() {
        return object.getClass();
    }
}
